package com.woniu.form;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class UpdateNoticeForm {
    @NotNull(message = "公告id不能为空")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @NotNull(message = "公告标题不能为空")
    @ApiModelProperty(value = "公告标题")
    private String title;

    @NotNull(message = "公告内容不能为空")
    @ApiModelProperty(value = "公告内容")
    private String content;
}
